<template>
 <view class="my_search_container" :style="{'background':bgColor}">
   <div class="my_search" :style="{'border-radius':radius+'px'}"">
     <uni-icons type="search" size="18"></uni-icons>
   <!-- <icon class="icon-box-img" type="search" size="18"></icon> -->
     <text class="place">搜索</text>
   </div>
 </view>
</template>

<script>
  export default {
    name:"my_search",
    data() {
      return {
      };
    },
    props:{
      bgColor:{
        type:String,
        default:'#C00000'
      },
      radius:{
        type:Number,
        default:18
      }
    }
  }
</script>

<style scoped lang="less">
.my_search_container{
  height: 50px;

  padding: 0 10px;
  display: flex;
  align-items: center;
  .my_search{
    height: 36px;
    background-color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    .place{
      margin-left: 5px;
    }
  }
}
</style>